﻿// Decompiled with JetBrains decompiler
// Type: DnProcessSimulateCommands.CApC3DSnapshotComboItem
// Assembly: DnProcessSimulateCommands, Version=2402.0.0.890, Culture=neutral, PublicKeyToken=null
// MVID: A885D881-AEDF-447E-852A-6F13102E089C
// Assembly location: C:\Program Files\Tecnomatix_2402\eMPower\DotNetCommands\DnProcessSimulateCommands.dll

using Tecnomatix.Engineering;


namespace DnProcessSimulateCommands;

internal class CApC3DSnapshotComboItem
{
  private TxSnapshot m_snapshot;
  private SnapshotType m_snapshotType = SnapshotType.Existed;
  private string m_dummySnapshotName;

  internal CApC3DSnapshotComboItem(TxSnapshot snapshot) => this.m_snapshot = snapshot;

  internal CApC3DSnapshotComboItem(SnapshotType snapshotType)
  {
    this.m_snapshotType = snapshotType;
    if (this.m_snapshotType == SnapshotType.CurrentView)
    {
      this.m_dummySnapshotName = CApC3DUtils.GetResourceManager().GetString("CREATE_3D_DOCUMENTATION_CURRENT_VIEW");
    }
    else
    {
      if (this.m_snapshotType != SnapshotType.StartOperationView)
        return;
      this.m_dummySnapshotName = CApC3DUtils.GetResourceManager().GetString("CREATE_3D_DOCUMENTATION_START_OPERATION_VIEW");
    }
  }

  internal TxSnapshot Snapshot => this.m_snapshot;

  internal SnapshotType SnapshotType => this.m_snapshotType;

  internal string SnapshotName => this.m_dummySnapshotName;

  public override string ToString()
  {
    return !TxSnapshot.op_Inequality(this.m_snapshot, (ITxObject) null) ? this.m_dummySnapshotName : this.m_snapshot.Name;
  }
}
